﻿using Microsoft.International.Converters.PinYinConverter;
using Mysoft.Weixin.QY.Core.Translate;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PinYinToChn
{
    class Program
    {
        static void Main(string[] args)
        {
            //string str = "我是中国人你是美国人";
            //string reusltStr = "";
            //foreach (char item in str)
            //{
            //    ChineseChar cc = new ChineseChar(Program.Get(item));
            //    string result = cc.Pinyins[0].ToString();
            //    reusltStr += result + " ";
             
            //}
            //Console.WriteLine(reusltStr);

            string reusltStr = PinYinConverter.Get("我是中国人,你是美国人");
            Console.WriteLine(reusltStr);
            Console.ReadKey();
        }


       
    }
}
